﻿using Me.Amon.C;

namespace Me.Amon.POS
{
    public class PPos : PObj
    {
        #region 参数
        /// <summary>
        /// 代表查询
        /// </summary>
        public const string PARAM_VALUE_OPT_SELECT = "s";
        /// <summary>
        /// 代表更新
        /// </summary>
        public const string PARAM_VALUE_OPT_UPDATE = "u";
        public const string PARAM_VALUE_OPT_CREATE = "c";
        public const string PARAM_VALUE_OPT_DELETE = "d";
        public const string PARAM_VALUE_OPT_DETAIL = "i";
        /// <summary>
        /// 公司信息
        /// </summary>
        public const string PARAM_KEY_CORP = "c";
        /// <summary>
        /// 门店
        /// </summary>
        public const string PARAM_KEY_SHOP = "b";
        /// <summary>
        /// 用户
        /// </summary>
        public const string PARAM_KEY_USER = "u";
        /// <summary>
        /// 上传的数据
        /// </summary>
        public const string PARAM_KEY_DATA = "d";
        /// <summary>
        /// 第几页：默认第0页
        /// </summary>
        public const string PARAM_KEY_PAGE = "p";
        /// <summary>
        /// 每页数量：默认数量视功能不同。
        /// </summary>
        public const string PARAM_KEY_PAGE_SIZE = "s";
        #endregion

        public const string PARAM_VALUE_OPT_CREATE_SO = "h";
        public const string PARAM_VALUE_OPT_UPDATE_EMP = "e";
        public const string PARAM_VALUE_OPT_UPDATE_VIP = "v";
        public const string PARAM_VALUE_OPT_ROUND_AMT = "r";

        #region 错误
        public const int ERROR_CODE_CORP_EMPTY = 3;
        public const int ERROR_CODE_CORP_FORMAT = 4;
        public const int ERROR_CODE_SHOP_EMPTY = 5;
        public const int ERROR_CODE_SHOP_FORMAT = 6;
        public const int ERROR_CODE_USER_EMPTY = 7;
        public const int ERROR_CODE_USER_FORMAT = 8;
        /// <summary>
        /// 数据为空
        /// </summary>
        public const int ERROR_CODE_DAT_EMPTY = 9;
        /// <summary>
        /// 格式错误
        /// </summary>
        public const int ERROR_CODE_DAT_FORMAT = 10;

        #region 操控软件
        /// <summary>
        /// 锁定软件
        /// </summary>
        public const int ERROR_CODE_LOCK_APP = -2;
        /// <summary>
        /// 注销登录（软件）
        /// </summary>
        public const int ERROR_CODE_LOGOFF_APP = -3;
        /// <summary>
        /// 关闭软件
        /// </summary>
        public const int ERROR_CODE_SHUTDOWN_APP = -4;
        #endregion

        #region 操控系统
        /// <summary>
        /// 注销登录（系统）
        /// </summary>
        public const int ERROR_CODE_LOGOFF_SYS = -5;
        /// <summary>
        /// 重启系统
        /// </summary>
        public const int ERROR_CODE_RESTART_SYS = -6;
        /// <summary>
        /// 关闭系统
        /// </summary>
        public const int ERROR_CODE_SHUTDOWN_SYS = -7;
        #endregion
        #endregion
    }
}
